<?php

namespace App\Models\Address;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

class UserAddress extends Model implements Transformable
{
    use TransformableTrait;

    protected $fillable = ["address_id,address_name,user_id,consignee,province,
    city,district,address,mobile,sign_building,default,longitude,latitude,sex,
    address_tag,is_ok"];

    protected $primaryKey = 'address_id';
    public $timestamps = false;             //不需要自动维护
    protected $table = "user_address";      //表名
}
